import { ref, watch } from 'vue'
import { defineStore } from 'pinia'
export const useMapStore = defineStore('map', () => {
  const map = ref(null)
  // 定义watch
  // watch(map, (newValue, oldValue) => {
  //   console.log('map的值变化了...')
  //   console.log(oldValue, newValue)
  // })
  return { map }
})
